package com.easylinkin.sm.repository;

import java.util.List;
import org.springframework.stereotype.Repository;

import com.easylinkin.sm.entity.Customer;

import site.morn.boot.data.jpa.JpaRepository;

@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {

  Customer findFirstByNameAndDisplay(String name, Boolean display);

  List<Customer> findAllByDisplay(Boolean display);
}
